import { getSession, setSession } from "../../../utils/utils";
var menuHistorySessionKey = 'menuHistoryKey';

function storeHistory() {
  var history = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  setSession(menuHistorySessionKey, history);
}

function loadHistory() {
  return getSession(menuHistorySessionKey) || [];
}

export { menuHistorySessionKey, storeHistory, loadHistory };